package cn.mpq.payment.controller;


import cn.mpq.payment.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RedisController {


    @Autowired
    private RedisService redisService ;


    @RequestMapping(value = "/test/setRedis",method = RequestMethod.GET)
    public void setRedis(){
        redisService.set("1","value22222");
    }
    @RequestMapping(value = "/test/getRedis",method = RequestMethod.GET)
    public void getRedis(){
        redisService.get("1");
    }
}